<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // var list = [
    //     ["张三", 55, 66, 77], 
    //     ["李四", 67, 89, 90], 
    //     ["王五", 96, 50, 87],
    // ]

    var zhang = {
        name: "张三",
        chinese: 55,
        math: 66,
        english: 77,
    }

    var li = {
        name: "李四",
        chinese: 67,
        math: 89,
        english: 90,
    }

    var wang = {
        name: "王五",
        chinese: 96,
        math: 50,
        english: 87,
    }

    // var list = [zhang,li,wang];
    // console.log(list);

    // 数组对象 =>  数组嵌套对象
    var list = [{
        name:"张三",
        chinese:55,
        math:66,
        english:77,
    },{
        name:"李四",
        chinese:67,
        math:89,
        english:90,
    },{
        name:"王五",
        chinese:96,
        math:50,
        english:87,
    }];
    console.log(list);

    var list = [{
        goodsId:"100066622885",
        goodsName:"TCL电视 115X11G Max 115英寸 20000+级分区量子点点控光Pro XDR5000nits A++蝶翼星曜屏",
        goodsImg:"https://img10.360buyimg.com/n1/jfs/t1/158633/27/40144/123167/64e8859bF983586bb/42ba0b4c79361d14.jpg",
        goodsPrice:"79999.00"
    },{
        goodsId:"10078075450965",
        goodsName:"薯小萌新鲜水果玉米9斤甜糯爆浆玉米现摘苞谷嫩玉米棒子蔬菜批发 水果玉米3斤",
        goodsImg:"https://img12.360buyimg.com/jdcms/s300x300_jfs/t1/120472/37/37045/142446/6486859dF87bb78f0/6fddb487997e8ea9.jpg",
        goodsPrice:"18.80"
    },{
        goodsId:"100066622885",
        goodsName:"TCL电视 115X11G Max 115英寸 20000+级分区量子点点控光Pro XDR5000nits A++蝶翼星曜屏",
        goodsImg:"https://img10.360buyimg.com/n1/jfs/t1/158633/27/40144/123167/64e8859bF983586bb/42ba0b4c79361d14.jpg",
        goodsPrice:"79999.00"
    },{
        goodsId:"10078075450965",
        goodsName:"薯小萌新鲜水果玉米9斤甜糯爆浆玉米现摘苞谷嫩玉米棒子蔬菜批发 水果玉米3斤",
        goodsImg:"https://img12.360buyimg.com/jdcms/s300x300_jfs/t1/120472/37/37045/142446/6486859dF87bb78f0/6fddb487997e8ea9.jpg",
        goodsPrice:"18.80"
    }]



    // 对象嵌套数组/对象 (对象的健值可以是任意类型)

    /*  var zhang = {
         name: "张三",
         age: 18,
         class: "2308",
         grade:[55,66,77],
         info:{
             height:"180cm",
             weight:"90kg",
         }
     } */

    //  
    var china = {
        country: "china",
        list: [{ // 省份列表
            province_id: "CH01",
            province_name: "北京",
            list: [{
                city_id: "CH0101",
                city_name: "朝阳区"
            }, {
                city_id: "CH0102",
                city_name: "海淀"
            }, {
                city_id: "CH0103",
                city_name: "上地"
            }]
        }, {
            province_id: "CH02",
            province_name: "上海",
            list: [{
                city_id: "CH0201",
                city_name: "浦东区"
            }, {
                city_id: "CH0201",
                city_name: "徐汇区"
            }]
        }, {
            province_id: "CH03",
            province_name: "湖北",
            list: [{
                city_id: "CH0301",
                city_name: "武汉"
            }, {
                city_id: "CH0302",
                city_name: "宜昌"
            }]
        }]
    }
    console.log(china);

</script>

</html>